﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo
{
    class Program
    {
        static void Main(string[] args)
        {
            Cat c = new Cat();
            c.Leg = 4;
            c.Tui();
            c.Eat();
            c.Sleep();
            c.Run();
            c.zhua();

            Console.WriteLine("--------------------------");
            
            Tiger t = new Tiger();
            t.Leg = 4;
            t.Tui();
            t.Eat();
            t.Sleep();
            t.Run();
            t.Hunting();


            Console.WriteLine("--------------------------");

            Magpie m = new Magpie();
            m.Leg = 2;
            m.Tui();
            m.Eat();
            m.Sleep();
            m.Fly();
            m.Jubilant();


            Console.WriteLine("--------------------------");

            Woodpecker w = new Woodpecker();
            w.Leg = 2;
            w.Tui();
            w.Eat();
            w.Sleep();
            w.Fly();
            w.worm();

            Console.ReadKey();
        }
    }
}
